@import '../../../theme/sorollbar.less';
:local {
  .information_wrap {
    height: 100%;
  }
  .child_link {
    color: #13ce66;
    cursor: pointer;
    display: block;
    &:hover {
      color: #13ce66;
      text-decoration: underline;
    }
  }
  .icon_active {
    color: #ff9c00;
  }

  .edit_wrap {
    padding: 20px 20px 20px 20px;
  }
  .statustwo {
    background-color: #ffd9d9;
  }
  .padding {
    padding-left: 10px;
  }
  .channel_id {
    .copy_float {
      display: inline-block;
    }
    .copy_dev {
      width: 220px;
      margin-right: 10px;
      :global {
        .ant-form-item-control-wrapper {
          width: 150px;
        }
      }
    }
    .drop_down {
      height: 100%;
      min-height: 36px;
      min-width: 320px;
      max-width: -webkit-calc(~'100% - 550px');
      max-width: -moz-calc(~'100% - 550px');
      max-width: -ms-calc(~'100% - 550px');
      max-width: -o-calc(~'100% - 550px');
      max-width: calc(~'100% - 550px');
      line-height: 36px;
      position: relative;
      &:focus {
        border-color: #56eca1;
        box-shadow: 0 0 0 2px rgba(86, 236, 161, 0.2);
      }
    }
    :global {
      .ant-select-selection {
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        background-color: #fff;
        max-height: 168px;
        height: 100%;
        overflow-y: auto;
        min-height: 36px;
        line-height: 100%;
        padding-bottom: 0;
        .ant-select-selection__rendered {
          line-height: 36px;
          & > ul > li {
            height: 28px;
            line-height: 28px;
          }
        }
      }
      .ant-input,
      .ant-calendar-picker,
      .ant-btn {
        display: inline-block;
        vertical-align: top;
      }
      .ant-btn {
        height: 36px;
        line-height: 36px;
        margin-left: 10px;
      }
      .ant-calendar-picker-input {
        &:focus .ant-calendar-picker-input:not(.ant-input-disabled) {
          border-color: #56eca1;
          box-shadow: 0 0 0 2px rgba(86, 236, 161, 0.2);
        }

        &:hover {
          border-color: #56eca1 !important;
        }
        height: 36px;
      }
    }
  }
  .control_ct {
    padding: 20px;
    padding-top: 40px;
    padding-bottom: 0px;
    .channel_id {
      :global {
        .ant-form-item-control-wrapper {
          width: 320px;
        }
      }
      .copy_dev_wrap {
        margin-right: 15px;
        :global {
          .ant-form-item-control-wrapper {
            width: 220px;
          }
        }
      }
      width: 710px;
    }
    .search {
      margin-top: 1px;
      :global {
        .ant-btn {
          &.ant-btn-clicked {
            &:after {
              border-color: #40bc7e;
            }
          }
          width: auto;
          height: 36px;
          line-height: 36px;
          color: #fff;
          span,
          i {
            color: #fff;
          }
          background-color: #50e399;
          border-color: #50e399;
          &:hover {
            background-color: #7fffbe;
            border-color: #7fffbe;
          }
          &:active {
            background-color: #40bc7e;
            border-color: #40bc7e;
          }
          &:focus {
            background-color: #50e399;
            border-color: #50e399;
          }
        }
      }
    }
  }
  .sub_title {
    position: relative;
    padding: 12px 0 12px 11px;
    font-size: 14px;
    color: #999;

    .alarm_operation {
      position: absolute;
      right: 0;
      top: 5px;
      .import_btn,
      .copy_btn,
      .tpl_btn,
      .export_btn {
        display: inline-block;
        vertical-align: top;
        border-radius: 17px;
        margin-left: 10px;
        width: auto;
        background-color: #fff;
        border-color: #fff;
        padding: 0 2px;
        span,
        i {
          color: #3c3c3c;
        }
        .common_icon {
          padding-right: 5px;
          font-size: 18px;
        }
        &:hover {
          background-color: #fff;
          border-color: #fff;
        }
        &:active {
          background-color: #fff;
          border-color: #fff;
        }
        &:focus {
          background-color: #fff;
          border-color: #fff;
        }
        &:global(.ant-btn-clicked) {
          &:after {
            border-color: #fff;
          }
        }
      }
    }
    span {
      font-size: 14px;
      color: #999;
      display: inline-block;
      vertical-align: top;
    }
  }
  .row_collapsed {
    &:after {
      content: '+';
    }
  }
  .row_expanded {
    &:after {
      content: '-';
    }
  }
  .line {
    height: 0px;
    width: 100%;
    border-bottom: 1px solid #e8e8e8;
  }
  .expand_icon {
    font-style: normal;
    margin-right: 8px;
    margin-top: 2px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    display: inline-block;
    width: 17px;
    height: 17px;
    text-align: center;
    line-height: 14px;
    border: 1px solid #e8e8e8;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: #fff;
  }
  .more {
    cursor: pointer;
    font-size: 22px;
  }
  .icon_passive {
    color: #5dccff;
  }
  .virtualLabel {
    display: inline-block;
    vertical-align: top;
    line-height: 36px;
    padding-right: 10px;
    span {
      font-size: 20px;
      padding: 0 8px;
    }
  }
  .virtual_wrap {
    padding: 20px 20px 20px 36px;
    :global {
      .cl_select_label_90 {
        width: 50%;
        .ant-form-item-control-wrapper {
          width: 100%;
        }
        .ant-row {
          width: auto;
        }
      }
    }
  }
  .information_ct {
    .scrollCommon();
    .min_width {
      min-width: 1069px;
      padding: 22px 38px 0;
      height: 100%;
    }
    overflow: auto;
    margin-top: 14px;
    background: #fff;
    height: -webkit-calc(~'100% - 97px');
    height: -moz-calc(~'100% - 97px');
    height: -ms-calc(~'100% - 97px');
    height: -o-calc(~'100% - 97px');
    height: calc(~'100% - 97px');
    .table_wrap {
      :global {
        .ant-table .ant-table-expanded-row-level-1 > td:last-child {
          padding: 0 50px 0 0px;
        }
        .ant-table
          .ant-table-expanded-row
          .ant-table-expanded-row
          > td:last-child {
          padding: 0;
        }
        .cl_hidden_expand_icon {
          .ant-table-row-expand-icon-cell .ant-table-row-expand-icon {
            display: none;
          }
        }
      }
    }
  }
  .alarm_wrap {
    .alarm_down {
      position: absolute;
      right: 24px;
      top: 50%;
      font-size: 22px;
      transform: scale(0.83333333) rotate(0deg) translateY(-50%);
    }
    :global {
      .ant-dropdown-trigger {
        cursor: pointer;
        line-height: 58px;
        height: 58px;
        position: relative;
        width: 100%;
        span {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          width: 88%;
          display: block;
        }
      }
      .padding0 {
        td {
          padding: 0px !important;
          border-right: 1px solid #e8e8e8;
          &:last-child {
            border-right: none;
          }
        }
      }
      .ant-select-selection-selected-value {
        float: none;
        transform: translate(-50%);
        position: absolute;
        left: 50%;
      }
      .ant-select-selection {
        border: none;
        border-radius: 0;
      }
    }
  }
  .alarm_operation {
    .alarm_row {
      text-align: center;
    }
    .msg_search {
      &:hover {
        background-color: transparent;
      }
      .alarm_row {
        & > div {
          margin-bottom: 0px;
        }
      }
    }

    overflow: auto;
    max-height: 240px;
  }
  .con_input {
    width: 100%;
    text-align: center;
    border: none;
    &:focus {
      box-shadow: none;
    }
  }
  .alarm_delete {
    margin-right: 8px;
  }
  .alarm_placeholder {
    color: #a6a6a6;
  }
  .alarm_btn_wrap {
    .alarm_add {
      padding: 0;
      &:global(.ant-btn-clicked) {
        &:after {
          border-color: #40bc7e;
        }
      }
      width: 34px;
      span,
      i {
        line-height: 30px;
        height: 34px;
        font-size: 20px;
        width: 34px;
        text-align: center;
        color: #fff;
        display: block;
      }
      background-color: #50e399;
      border-color: #50e399;
      &:hover {
        background-color: #7fffbe;
        border-color: #7fffbe;
      }
      &:active {
        background-color: #40bc7e;
        border-color: #40bc7e;
      }
      &:focus {
        background-color: #50e399;
        border-color: #50e399;
      }
    }
  }
  .alarm_btn_wrap .alarm_edit,
  .alarm_btn_wrap .alarm_delete {
    width: auto;
    background-color: #ff4949;
    border-color: #ff4949;
    &:hover {
      background-color: #ff4949;
      border-color: #ff4949;
    }
    &:active {
      background-color: #ff4949;
      border-color: #ff4949;
    }
    &:focus {
      background-color: #ff4949;
      border-color: #ff4949;
    }

    &:global(.ant-btn-clicked) {
      &:after {
        border-color: #ff4949;
      }
    }
    line-height: 30px;
    height: 30px;
    color: #fff;
    span,
    i {
      color: #fff;
    }
    padding: 0 10px;
  }
  .operation {
    .delete,
    .alarm,
    .edit,
    .detail {
      &:last-child {
        margin-right: 0;
      }
      margin-right: 30px;
      i {
        margin-right: 6px;
        cursor: pointer;
        color: #7e7e7e;
        font-size: 18px;
        &:hover {
          color: #5deda4;
        }
        &:active {
          color: #40bc7e;
        }
      }
      display: inline-block;
    }
  }
  .row_float {
    display: inline-block;
    vertical-align: top;
    :global {
      .cl_virtual_input {
        width: auto;
        margin-right: 12px;
        .ant-form-item-control-wrapper {
          width: 224px;
        }
      }
    }
  }
  .edit_wrap .edit_virtual_btn {
    background-color: #f7ba2a;
    border-color: #f7ba2a;
    padding: 0 10px;
    &:hover {
      background-color: #f9c855;
      border-color: #f9c855;
    }
    &:active {
      background-color: #f7ba2a;
      border-color: #f7ba2a;
    }
    &:focus {
      background-color: #f7ba2a;
      border-color: #f7ba2a;
    }
    &:global(.ant-btn-clicked) {
      &:after {
        border-color: #f7ba2a;
      }
    }
    &[disabled] {
      color: #fff;
      background-color: #f3d388;
      border-color: #f3d388;
    }
    width: auto;
    line-height: 36px;
    height: 36px;
  }
}
